package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FISDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("fos.dat");
        int d=fis.read();
        System.out.println(d);

        d=fis.read();
        System.out.println(d);

        d=fis.read();
        System.out.println(d);


        FileInputStream fis1=new FileInputStream("fos.dat");

        int a=fis1.read();
        System.out.println(a);

        a=fis1.read();
        System.out.println(a);

        a=fis1.read();
        System.out.println(a);

    }
}
